/*
 * @Author: ykp 501436989@qq.com
 * @Date: 2025-05-10 14:39:34
 * @LastEditors: ykp 501436989@qq.com
 * @LastEditTime: 2025-05-10 14:52:59
 * @FilePath: \vue-ts\src\views\todolist\stores\counter.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { ref, computed } from "vue";
import { defineStore } from "pinia";

export const useCounterStore = defineStore(
  "counter",
  () => {

    const refreshType = ref(false);
    const goRefresh = function (e: boolean): void {
      refreshType.value = e
    }

    return { refreshType, goRefresh };
  },
  {
    persist: true,
  }
);
